package com.xxlie.auth.security.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.crypto.password.StandardPasswordEncoder;

/**
 * PasswordEncoderConfig
 *
 * @author xxlie.com
 * @since 2017/7/30
 */
@Configuration
public class PasswordEncoderConfig {

    @Bean
    protected PasswordEncoder passwordEncoder() {
        return new StandardPasswordEncoder("%twgdh%");
    }

}
